package day18;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

public class AnnotationPrc01 {
}
@Target({ElementType.CONSTRUCTOR,ElementType.PARAMETER,ElementType.FIELD,ElementType.METHOD})
@Retention(RetentionPolicy.SOURCE)
@interface Test{
   int age() default 20;
   String name() default "zhuzhu";
   String mm="ad";
}
//@Test
class Student{

    char gender='男';
//    static int a;
    int a;

    @Test
    public Student(char gender) {
        this.gender = gender;
    }
    @Test
    public void study(){
        System.out.println("好好学习");
    }
}